package com.larry.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.larry.service.ILarryService;
import com.larry.vo.LarryVO;
import com.opensymphony.xwork2.ActionSupport;

public class LarryAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private LarryVO larry;

	private List<LarryVO> larryList;

	@Autowired(required = true)
	private ILarryService larryService;

	@Override
	public String execute() throws Exception {
		larryList = larryService.getList();
		return SUCCESS;
	}

	public LarryVO getLarry() {
		return larry;
	}

	public void setLarry(LarryVO larry) {
		this.larry = larry;
	}

	public List<LarryVO> getLarryList() {
		return larryList;
	}

	public void setLarryList(List<LarryVO> larryList) {
		this.larryList = larryList;
	}
}
